import { join } from 'path';
import { Configuration } from '@midwayjs/core';
import * as web from '@midwayjs/web';
import * as typeorm from '@midwayjs/typeorm';
import * as crossDomain from '@midwayjs/cross-domain';

@Configuration({
  imports: [
    web,
    typeorm,
    crossDomain,
  ],
  importConfigs: [
    join(__dirname, './config/config.default.ts')
  ]
})
export class MainConfiguration {
  async onReady() {
    // 应用就绪后的初始化逻辑
  }
}